<html>
    <body>
        <h1>{string(doc($file)/recipe/@name)}</h1>
        <p>
            Serves {string(doc($file)/recipe/@serves)} people<br />
            Takes {string(doc($file)/recipe/@time)} minutes
        </p>
        <h2>Ingredients</h2>
        <p>
            <ul>
                {
                    for $i in doc($file)/recipe/ingredient
                    return <li>{string($i/@amount)} {string($i)}</li>
                }
            </ul>
        </p>
        <h2>Method</h2>
        <p>
            <ol>
                {
                    for $s in doc($file)/recipe/method/step
                    return <li>{string($s)}</li>
                }
            </ol>
        </p>
        <p>
            Labels:
            {
                for $l in doc($file)/recipe/label
                return string($l)
            }
        </p>
    </body>
</html>
